import { uniFetch  } from '../utils/Ajax'
import {uniConfig} from '../config/index'
const appId = uniConfig.appId
const basePath = uniConfig.prodPath
//王者荣耀专题，购票影院列表
export function wzCinemaList(data : any) {
  return uniFetch.uniGet({
      query: {
          ...data
      }
      },
      basePath + "/zt/wzry/cinema/list"
  )
}

//王者荣耀专题，选手列表
export function wzActorList(data : any) {
  return uniFetch.uniGet({
      query: {
          ...data
      }
      },
      basePath + "/zt/wzry/player/list"
  )
}

//王者荣耀专题，影院活动详细
export function wzCinemaDetaill(data : any) {
  return uniFetch.uniGet({
      query: {
          ...data
      }
      },
      basePath + "/zt/wzry/milestone/cinema/desc"
  )
}

//王者荣耀专题，选手活动详细
export function wzActorDetaill(data : any) {
  return uniFetch.uniGet({
      query: {
          ...data
      }
      },
      basePath + "/zt/wzry/milestone/player/desc"
  )
}

//王者荣耀专题，指定影院里程碑
export function wzCinemaMilestones(data : any) {
  return uniFetch.uniGet({
      query: {
          ...data
      }
      },
      basePath + "/zt/wzry/milestone/cinema"
  )
}

//王者荣耀专题，指定选手里程碑
export function wzActorMilestones(data : any) {
  return uniFetch.uniGet({
      query: {
          ...data
      }
      },
      basePath + "/zt/wzry/milestone/player"
  )
}

//王者荣耀专题，获取选手可助力数量
export function getActorPowerNum(data : any) {
  return uniFetch.uniGet({
      query: {
          ...data
      }
      },
      basePath + "/zt/wzry/myPlayerPowerNum"
  )
}

//王者荣耀专题，获取影院可助力数量
export function getCinemaPowerNum(data : any) {
    return uniFetch.uniGet({
        query: {
            ...data
        }
        },
        basePath + "/zt/wzry/myPowerNum"
    )
  }
  


//王者荣耀专题，执行助力
export function exPowerNum(data : any) {
  return uniFetch.uniGet({
      query: {
          ...data
      }
      },
      basePath + "/zt/wzry/power"
  )
}


export function getQrcode(data : any) {
	return uniFetch.uniPost({
	    query: {
	        ...data
	    }
	    },
	    basePath + "/zt/wzry/player/share"
	)
}

//省级列表
export function province(data : any) {
	return uniFetch.uniPost({
	    query: {
	        ...data
	    }
	    },
	    basePath + "/province/list"
	)
}


//市级列表
export function citys(data : any) {
	return uniFetch.uniGet({
	    query: {
	        ...data
	    }
	    },
	    basePath + "/zt/city/list"
	)
}

//区县级列表
export function countys(data : any) {
	return uniFetch.uniPost({
	    query: {
	        ...data
	    }
	    },
	    basePath + "/county/list"
	)
}

//专题-申请组团信息
export function applyGroup(data : any) {
	return uniFetch.uniPost({
	    query: {
	        ...data
	    }
	    },
	    basePath + "/zt/wzry/apply/group"
	)
}

//专题-战队列表
export function getTeamList(data : any) {
	return uniFetch.uniGet({
	    query: {
	        ...data
	    }
	    },
	    basePath + "/zt/wzry/gameTeam/list"
	)
}

//专题-战队详细
export function getTeamDetail(data : any) {
	return uniFetch.uniGet({
	    query: {
	        ...data
	    }
	    },
	    basePath + "/zt/wzry/gameTeam/get"
	)
}
